#include "stoprealtimeplay.h"
#include "ReceiveAndPlayAd.h"
#include "common.h"

StopRealtimePlay::StopRealtimePlay()
{
}

void StopRealtimePlay::doCommand()
{
	g_RealTimeVideoReceiveAndPlay->closeVideoSocket();
	g_RealTimeVideoReceiveAndPlay->removeAllTransVideoSocket();
	g_RealTimeAudioReceiveAndPlay->closeAudioSocket();
	g_RealTimeAudioReceiveAndPlay->removeAllTransAudioSocket();
	g_RealTimeVideoReceiveAndPlay->stop();
	g_RealTimeAudioReceiveAndPlay->stop();
	g_RealTimeVideoReceiveAndPlay->setVisual(false);
}
